package com.lxit.video.service;

import java.util.List;

import com.lxit.video.bean.UserInfo;
import com.lxit.video.util.PageUtil;

public interface UserService {
	
	boolean saveUser(UserInfo userInfo);
	
	//前台登录
	List<UserInfo>login(String name,String password);
	
	//后台登录
	List<UserInfo>admin_login(String name,String password);
	
	//验证用户名
	int nameCount(String name);
	
	//验证手机号码
	int phoneCount(String phone);
	
	//分页
	 PageUtil<UserInfo> pageGetAll(Integer pageIndex, Integer pageSize, String name);
	 
	 //条数
	 int countAll(String name);
	
}
